package com.example.shirospringboot.config;


import com.example.shirospringboot.model.SysUser;

public class WrapperSysUser {
    //该字段是为了在调用subject.logout的时候 认证信息能够被清除
    //配合 redisCacheManager.setPrincipalIdFieldName("principal"); 来用
    private Object principal;
    private SysUser sysUser;
    
    public WrapperSysUser(Object principal, SysUser sysUser) {
        this.principal = principal;
        this.sysUser = sysUser;
    }
    
    public Object getPrincipal() {
        return principal;
    }
    
    public void setPrincipal(Object principal) {
        this.principal = principal;
    }
    
    public SysUser getSysUser() {
        return sysUser;
    }
    
    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }
}
